package com.jicheng.service;

import com.jicheng.dto.data.SyncInfoParams;
import com.jicheng.dto.data.integrity.DelIntegerParams;
import com.jicheng.dto.data.log.LogsInfo;
import com.jicheng.dto.data.log.SyncDetailInfo;
import com.jicheng.dto.data.log.SyncLogsInfo;
import com.jicheng.dto.data.profile.ProfileSyncInfo;
import com.jicheng.dto.data.task.DelParams;
import com.jicheng.dto.data.task.TaskInfo;
import com.jicheng.dto.task.SynTemplLibParams;
import com.jicheng.dto.task.TemplateParams;
import com.jicheng.ext.util.ParamsValidator;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IDataSyncService extends ParamsValidator {

    void syncProfileDetail(List<ProfileSyncInfo> params, String userId);

    String syncPhotos(MultipartFile file);

    void syncLogs(LogsInfo params);

    void saveSynInfo(SyncInfoParams syncInfoParams);

    void syncTaskDetail(List<TaskInfo> params);

    void syncAttachment(MultipartFile file, String attachmentId);

    void delTask(DelParams delParams);

    int checkAttachment(String attachmentId);

    void saveAttachmented(String[] attachmentId, String taskId);

    void delIntegrity(DelIntegerParams delIntegerParams);

    void syncTemplate(SynTemplLibParams params);
}
